#需求
'''
1234
1234
1234

i =1
while i <=4:
    j = 1
    while j <=4:
      print(j ,end=' ')
      j += 1
    print()
    i += 1

打印‘*’正方形
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *

i = 1
while i <= 5:#满足外循环i
    j = 1
    while j <=5:
       print('*' ,end = '  ')
       j += 1
    print()
    i += 1

  打印三角形
*
* *
* * *
* * * *
* * * * *
'''
i = 1
while i <=5:
    j = 1
    while j <= i:
        print('*' ,end=" ")
        j += 1
    print()
    i += 1
